import request from "@/apis/request.js";
import url from "@/apis/urlconst.js";

export const login = (data) => {
    return request({
        url: url.v1.login_url.url,
        method: url.v1.login_url.method,
        data,
    });
};

export const logout = () => {
    return request({
        url: url.v1.logout_url.url,
        method: url.v1.logout_url.method,
    });
};

export const userinfo = () => {
    return request({
        url: url.v1.userinfo_url.url,
        method: url.v1.userinfo_url.method,
    });
};